package 责任链模式;

public class Test {
    static void fun(Do hander,Request req){
        hander.hander(req);
    }
    public static void main(String[] args) {
        Do d=new TempLeader(new DepMgr(new Leader(null)));
        fun(d, new Request(5));
    }
}
